<?php
include "./utils/auth.php";
?>
<div id="actionpanel" class="leftpanelcontainer">
	
	<div class="leftpanelcontaineritem">
		<div class="leftpanelcontaineritemhead">
			<h2>Clanwars</h2>
		</div>
		<ul class="nav">
			<li id="getunpaidbattles"  class="leftpanelcontainermenueitem" onclick="getunpaidbattles()">
				Pending Battles
			</li>
			<li id="getallbattles" class="leftpanelcontainermenueitem"  onclick="getpaidbattles()">
				History
			</li>
			
		</ul>
	</div>
</div>


<div class="leftpanelcontainer">
	<div class="leftpanelcontaineritem">
		<div class="leftpanelcontaineritemhead">
			<h2>Clan</h2>
			
		</div>
		<ul class="nav">
			<li id="getmemberlist"  class="leftpanelcontainermenueitem" onclick="getmemberinfo()">
				Memberlist
			</li>
		</ul>
	</div>
</div>


<div class ="leftpanelcontainer">
	<div class="leftpanelcontaineritem">
		<div class="leftpanelcontaineritemhead">
			User
		</div>
<?php
	$id = $_SESSION['userid'];
	if($id<2)
	{
		echo'
	<div id="userbox" class="leftpanelcontaineritem">
		<form method="POST"  action="utils/dologin.php">
			Username:
			<input type="text" name="username" />
			<p>
			Password:
			<input type="password" name="password" />
			<p>
			<input type="submit" value="login"/>
		</form>
	</div>
';
	}
	else
	{
		echo '<div id="userbox" class="leftpanelcontaineritem">Hello User '.$_SESSION['userid'].'</div>';
	}
?>
	</div>
</div>